package com.me.bbs.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.PostDTO;
import com.me.bbs.entity.Post;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lm
 * @since 2023-01-09
 */
public interface IPostService extends IService<Post> {

    boolean createPost(Post post) throws Exception;

    PostDTO getPostDto(Long id);

    Page<PostDTO> getPostList(Page<PostDTO> dtoPage, LambdaQueryWrapper<Post> wrapper);

    boolean deletePost(Long postId);
}
